package com.dragon.mmochat.model;

import java.io.Serializable;

import com.dragon.mmochat.model.enumType.MmochatSkillType;

//技能
public class MmochatSkill implements Comparable<MmochatSkill>, Serializable {
	private static final long serialVersionUID = 3253518526639559656L;
	private MmochatSkillType type; // 技能类型
	private int level = 0; // 技能等级

	public static final int 攻击技能 = 0;
	public static final int 障碍技能 = 1;
	public static final int 辅助技能 = 2;

	public MmochatSkillType getType() {
		return type;
	}

	public void setType(MmochatSkillType type) {
		this.type = type;
	}

	public int getSpritCost() {
		return 0;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	// 获得技能攻击目标数
	public int getTargetNum() {
		// TODO
		return 1;
	}

	// 获得技能伤害系数
	public double getSkillHurtParam() {
		return 0.75;
	}

	@Override
	public int compareTo(MmochatSkill other) {
		return other.getType().getActionType().getValue()
				- type.getActionType().getValue();
	}

}
